﻿<%@ Page Title="" Language="C#" StylesheetTheme="AdminTheme" MasterPageFile="~/Backend/mtpAdmin.master"
    AutoEventWireup="true" CodeBehind="EditChannel.aspx.cs" Inherits="HPortal.Backend.EditChannel" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="dvTitleContent"> 

    Quản lý trang :: Thêm trang mới</div>
    <fieldset>
        <legend>Cập nhật thông tin trang</legend>
        <table class="MainTable">
            <tr>
                <td colspan="2" width="65%">
                    <table width="100%">
                        <tr>
                            <td>
                                Tên trang:
                            </td>
                            <td>
                                <asp:TextBox ID="txtChannelName" runat="server" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Nguồn liên kết:
                            </td>
                            <td>
                                <asp:TextBox ID="txtUrl" runat="server" Width="150px">default.aspx</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Trang cha:
                            </td>
                            <td>
                                <asp:DropDownList ID="cboParent" runat="server" Width="156px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:RadioButtonList ID="chkLang" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="0" Selected="True">Tiếng Việt</asp:ListItem>
                                    <asp:ListItem Value="1">Tiếng Anh</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td>
                                <asp:CheckBox ID="chkApprove" runat="server" Text="Phải duyệt bài" />
                                &nbsp;&nbsp;&nbsp;
                                <asp:CheckBox ID="chkLock" runat="server" Text="Khóa" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <table>
                        <tr>
                            <td>
                                Di chuyển trang
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:ImageButton ID="imgUpChannel" runat="server" ImageUrl="~/Images/Up.gif" OnClick="imgUpChannel_Click"
                                    Visible="False" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:ImageButton ID="imgDownChannel" runat="server" ImageUrl="~/Images/Down.gif"
                                    OnClick="imgDownChannel_Click" Visible="False" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td  colspan="2"></td>
                <td>
                    <asp:LinkButton ID="lblUpdate" runat="server" OnClick="lblUpdate_Click">Cập nhật</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="lblDelete" runat="server" OnClientClick="return confirm('Are you sure?');"
                        OnClick="lblDelete_Click">Xóa chuyên mục</asp:LinkButton>
                </td>
            </tr>
        </table>
    </fieldset>
    <fieldset>
        <legend>Phân quyền quản trị trang</legend>
        <asp:GridView ID="grvChannelRole" runat="server" SkinID="tGridview" AutoGenerateColumns="False">
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <%# Container.DataItemIndex +1 %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên nhóm">
                    <ItemTemplate>
                        <asp:Label ID="lblRole" runat="server" Text='<%# Container.DataItem %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Quyền xem">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkViewed" runat="server" AutoPostBack="true" ToolTip='<%# Container.DataItem %>'
                            OnCheckedChanged="CheckedView" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Quyền sửa">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkEdited" runat="server" AutoPostBack="True" ToolTip='<%# Container.DataItem %>'
                            OnCheckedChanged="CheckedEdit" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Quyền duyệt">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkApproved" runat="server" AutoPostBack="true" ToolTip='<%# Container.DataItem %>'
                            OnCheckedChanged="CheckedApprove" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Quyền quản trị">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkAdministrated" runat="server" AutoPostBack="true" ToolTip='<%# Container.DataItem %>'
                            OnCheckedChanged="CheckedAdministrate" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </fieldset>
</asp:Content>
